import http from './http'

// const perfix = '/api'        // api接口前缀
const perfix = "/api/member";

// 搜索股票
export function search_gupiao(params) {
    return http.post(`${perfix}/v1/stock/search`, params).then(res => res.data)
}

// 添加自选股票
export function add_gupiao(params) {
    return http.post(`${perfix}/v1/member/collect/add`, params).then(res => res.data)
}

// 批量删除自选股票
export function delect_gupiao(params) {
    return http.post(`${perfix}/v1/member/collect/delect`, params).then(res => res.data)
}

// 查询自选股票
export function find_gupiao(params) {
    return http.post(`${perfix}/v1/member/collect/find`, params).then(res => res.data)
}

// 股票判断
export function risk_gupiao(params) {
    return http.post(`${perfix}/v1/member/collect/risk`, params).then(res => res.data)
}

